function loadBookFavorite(target)
{
	Packages.system.mlf.GateKeeper.updateDynamicPortlet(target._parent, "app/vo/BookFavorite.xml");
	dynamicPortletArr.bookInfo="bookFavorite";
}

function confirmBookFavorite()
{
	var obj:Object=new Object();
	obj.memberId=Packages.model.UserProfile.data.memberId+"";
	obj.bookId=Packages.model.Context.address.id+"";
	// Packages.log(this+".bookFavoriteCreate...bookId="+obj.bookId+" memberId="+obj.memberId); 
	var data:Object=new Object();
	// data.path=target._parent;
	data.name="BookSpecial";
	data.container="bookInfoContainer";
	data.oper="bookFavoriteCreate";
	data.uri="app/content/bookPage/BookSpecial.xml";
	data.returnPath="loadBookSpecialInfo";
	data.dynamicPortlet=dynamicPortletArr.bookInfo;

	dynamicPortletArr.bookInfo="commonRemotingResult";

	Packages.modula.RequestCommand.request("REMOTING", "bookFavoriteCreate", obj, Packages.model.vo.CommonRemotingResultView, "normal", this, data);
}


function onBookFavoriteInit()
{
	var evtTargetArr:Array=new Array();
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "favoriteConfirmSpot"));
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "favoriteReturnSpot"));
	Packages.system.events.StateFulButtonEvent.initialize(evtTargetArr);

	// countMemberByFavoriteBook -> favAlreadyNumber instance
	var obj:Object=new Object();
	obj.bookId=bookId.toString();
	Packages.modula.RequestCommand.request("REMOTING", "countMemberByFavoriteBook", obj, Packages.model.vo.BookView, "favoriteMembers", this, null);
}